package com.ys.erp.stage_mall_service.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author lwj
 * @date 2023/5/16
 */
@Data
@Accessors(chain = true)
@Schema(description = "售后订单返回对象")
public class OrderAfterSaleVO {

    @Schema(description = "售后订单id")
    private Long id;

    @Schema(description = "订单id")
    private Long orderId;

    @Schema(description = "订单编号")
    private String orderSerialNo;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "售后类型0退款，1退货退款")
    private Integer afterSaleType;

    @Schema(description = "售后商品id")
    private Long orderGoodsId;

    @Schema(description = "售后状态0待处理，1处理中，2处理完成")
    private Integer afterSaleStatus;

    @Schema(description = "微信退款金额")
    private String rejectWxMoney;

    @Schema(description = "幺币退款金额")
    private String rejectYsMoney;

    @Schema(description = "是否同意售后0否1是")
    private Integer isAgreeAfterSale;

    @Schema(description = "退款原因")
    private String rejectRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "售后时间")
    private LocalDateTime afterSaleTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "通过时间")
    private LocalDateTime passTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "用户处理时间")
    private LocalDateTime userDisposeTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "商家处理时间")
    private LocalDateTime busDisposeTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "完成时间")
    private LocalDateTime okTime;

    @Schema(description = "商品状态")
    private Integer goodsStatus;

    @Schema(description = "售后原因")
    private String rejectReason;

    @Schema(description = "售后金额")
    private String rejectMoney;

    @Schema(description = "用户备注")
    private String rejectUserRemark;

    @Schema(description = "用户手机号")
    private String userPhone;

    @Schema(description = "支付类型")
    private String payType;

    @Schema(description = "用户凭证")
    private List<String> userVoucher;

    @Schema(description = "物流id")
    private String expressId;

    @Schema(description = "物流名字")
    private String expressName;

    @Schema(description = "是否商家确认收货")
    private Integer isBusOkDelivery;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "商家确认收货时间")
    private LocalDateTime busOkDeliveryTime;

    @Schema(description = "售后商品")
    private OrderGoodsVO orderGoods;

    @Schema(description = "售后订单")
    private OrderVO order;

    @Schema(description = "售后退款状态")
    private Integer refundStatus;

    @Schema(description = "幺豆")
    private String ysPulse;

}
